package com.yang.flower.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @Description: 鲜花表
 * @Author: Yang
 * @DateTime: 2022/12/5 20:11
 **/
@Data
@TableName(value = "flower")
public class Flower {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    private String name;

    private BigDecimal price;

    private String code;

    private Long categoryId;

    private String description;

    private Boolean status;

    private String img;

    private String purpose;

    private String constitute;

    private String targets;

    private BigDecimal sales;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    private String createUser;

    @TableField(exist = false)
    private Integer num;

}
